d3414775c46f27f357594717fdfa498f5be97bc0,test/integration-tests/src/test/java/org/springframework/ldap/itest/LdapTemplateModifyITest.java,LdapTemplateModifyITest,testModifyAttributes_MultiValueReplace,#,108
Before Change
tested.modifyAttributes(PERSON4_DN, mods);
DirContextAdapter result = (DirContextAdapter) tested.lookup(PERSON4_DN);
String[] attributes = result.getStringAttributes("description");
assertEquals(2, attributes.length);
assertEquals("Some other description", attributes[0]);
assertEquals("Another description", attributes[1]);
After Change
tested.modifyAttributes(PERSON4_DN, mods);
DirContextAdapter result = (DirContextAdapter) tested.lookup(PERSON4_DN);
List<String> attributes = Arrays.asList(result.getStringAttributes("description"));
assertEquals(2, attributes.size());
assertTrue(attributes.contains("Some other description"));
assertTrue(attributes.contains("Another description"));